﻿@model Diploma.Web.Models.LoginModel

@{
    ViewBag.Title = "Log in";
}
@section featured{
<hgroup class="title">
    <h1>@ViewBag.Title.</h1>
</hgroup>
}
<section id="loginForm">
<h3>Use a local account to log in.</h3>
@using (Html.BeginForm(new { ReturnUrl = ViewBag.ReturnUrl })) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Log in Form</legend>
        <ul>
            <li>
                @Html.LabelFor(m => m.UserName) <br />
                @Html.TextBoxFor(m => m.UserName) <br />
                @Html.ValidationMessageFor(m => m.UserName) <br />
            </li>
            <li>
                @Html.LabelFor(m => m.Password) <br />
                @Html.PasswordFor(m => m.Password) <br />
                @Html.ValidationMessageFor(m => m.Password) <br />
            </li>
            <li>
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe, new { @class = "checkbox" }) <br />
            </li>
        </ul>
        <input type="submit" value="Log in" />
    </fieldset>
    <p>
        @Html.ActionLink("Register", "Register") if you don't have an account.
    </p>
}
</section>


<link href="~/Content/css/loginPage.css" rel="stylesheet" />
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
